<template>
    <div>
        <div class="size">
            <table class="info-size" v-for="(table,index) in goodsParam.sizes" :key="index">
                <tr v-for="(tr,indexy) in table" :key="indexy">
                    <td  v-for="(td,indexz) in tr" :key="indexz">{{td}}</td>
                </tr>
            </table>
        </div>
        
        <div class="infos">
            <table>
                <tr v-for="(item,index) in goodsParam.infos" :key="index">
                    <td class="info-key">{{item.key}}</td>
                    <td class="info-value">{{item.value}}</td>
                </tr>
            </table>
        </div>

        <div class="info-img">
            <img src="goodsParam.image" alt="">
        </div>
    </div>
</template>

<script>
export default {
    props:{
        goodsParam:{
            type:Object
        }
    }
};
</script>

<style lang="less" scoped>
.size{
    padding: 20px 15px;
    font-size: 14px;
    border-bottom: 5px solid #f2f5f8;
}
.info-key{
    width: 95px;
}
.info-value{
    color: #eb4868;
}

.info-size{
    width: 100%;
    border-collapse: collapse;
    tr{
        height: 42px;
        td{
            border-bottom: 1px solid rgba(100, 100, 100, .1);
        }
    }
}
.infos{
    tr{
        height: 42px;
        td{
           border-bottom: 1px solid rgba(100, 100, 100, .1);
        }
    }
}

</style>

